package com.lcp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lcp.entity.LectureRegistration;

import java.util.List;

public interface LectureRegistrationService {
    LectureRegistration getById(Long id);
    
    IPage<LectureRegistration> pageByLectureId(Long lectureId, Integer pageNum, Integer pageSize);
    
    List<LectureRegistration> listByUserId(Long userId);
    
    LectureRegistration create(LectureRegistration registration);
    
    LectureRegistration update(LectureRegistration registration);
    
    void delete(Long id);
    
    boolean isRegistered(Long lectureId, Long userId);
    
    void cancelRegistration(Long lectureId, Long userId);
    
    void markAsAttended(Long lectureId, Long userId);
    
    void submitFeedback(Long lectureId, Long userId, String feedback, Integer rating);
} 